<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="__STATIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="__STATIC__/admin/css/style.css"/>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace.min.css" />
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome.min.css" />
    <link href="__STATIC__/admin/Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />
    <!--[if IE 7]>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome-ie7.min.css" />
    <![endif]-->
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace-ie.min.css" />
    <![endif]-->
    <script src="__STATIC__/admin/js/jquery-1.9.1.min.js"></script>
    <script src="__STATIC__/admin/assets/js/bootstrap.min.js"></script>
    <title>修改分类</title>
</head>
<body>
<div class="type_style">
    <div class="type_title">修改类型信息</div>
    <div class="type_content">

        <form action="{:url('category/update')}" method="post" class="form form-horizontal" id="form-user-add">
            <div class="Operate_cont clearfix">
                <label class="form-label"><span class="c-red">*</span>分类名称：</label>
                <div class="formControls ">
                    <input type="text" class="input-text" value="{$cate.cate_name}" placeholder="输入分类名"  name="cate_name">
                    <input type="hidden" name="cate_id" value="{$cate.cate_id}">
                </div>
            </div>
            <div class="Operate_cont clearfix">
                <label class="form-label"><span class="c-red">*</span>父级分类：</label>
                <div class="formControls ">
                    <div class="formControls col-2"><span class="select-box">
				<select class="select" name="parent_id">
                     <option value="0"> 顶级分类</option>

                   {volist name="catelist" id="vo"}
          <option {if condition="$cate['parent_id'] eq $vo['cate_id']"}selected="selected"{/if} value="{$vo.cate_id}">{if condition="$vo['level'] neq 0"}|{/if}<?php echo str_repeat('-', $vo['level']*4)?>{$vo.cate_name}</option>
                    {/volist}
				</select>
				</span></div>
                </div>
            </div>
            <div class="Operate_cont clearfix">
                <label class="form-label"><span class="c-red">*</span>备注：</label>
                <div class="formControls ">
                    <input type="text" class="input-text" value="{$cate.remark}" placeholder="输入分类备注"  name="remark">
                </div>
            </div>
            <div class="Operate_cont clearfix">
                <label class="form-label"><span class="c-red">*</span>排序：</label>
                <div class="formControls ">
                    <input type="text" class="input-text" value="{$cate.displayorder}" placeholder="输入排序值，越大越靠前"  name="displayorder">
                </div>
            </div>
            <div class="">
                <div class="" style=" text-align:center">
                    <input class="btn btn-primary radius" type="submit" value="提交">
                </div>
            </div>
        </form>
    </div>
</div>
</div>
<script type="text/javascript" src="__STATIC__/admin/Widget/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/assets/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/H-ui.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/H-ui.admin.js"></script>
<script type="text/javascript">
    $(function(){
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form-user-add").Validform({
            tiptype:2,
            callback:function(form){
                form[0].submit();
                var index = parent.layer.getFrameIndex(window.name);
                parent.$('.btn-refresh').click();
                parent.layer.close(index);
            }
        });
    });
</script>
</body>
</html>